package study.translation.interpreter;

public class Variable
{
    public enum Type
    {
        REAL,
        COMPLEX
    }

    private Type type;

    private String name;

    private Number value;

    public Variable( String name, Type type, Number value )
    {
        this.name = name;
        this.type = type;
        this.value = value;
    }

    public String getName()
    {
        return name;
    }

    public Type getType()
    {
        return type;
    }

    public Number getValue()
    {
        return value;
    }

    public void setValue( Number value )
    {
        this.value = value;
    }
}
